]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
location: Only show menu when geolocation is in use
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 9 Aug 2014 15:38:20 +0000 (16:38 +0100)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 19 Aug 2014 18:20:47 +0000 (19:20 +0100)
Users can now toggle geolocation off/on from privacy panel of
gnome-control-center so we don't need to clutter the menu with a
settings that most users won't touch most of the time.

https://bugzilla.gnome.org/show_bug.cgi?id=731122

js/ui/status/location.js

index 052f77cc69e63bf4b8981ac0589936109622c172..c6694d1a0f6fe280737f731444f63f58d672b136 100644 (file)
@@ -96,10 +96,12 @@ const Indicator = new Lang.Class({
     _syncIndicator: function() {
         if (this._proxy == null) {
             this._indicator.visible = false;
+            this._item.actor.visible = false;
             return;
         }
 
         this._indicator.visible = this._proxy.InUse;
+        this._item.actor.visible = this._indicator.visible;
         this._updateMenuLabels();
     },